//action.js
//获取应用实例
var app = getApp()
var httpUtil = require("../../utils/http.js");
Page({
  data: {
    mediaUrl:""
  },
  onLoad: function (options) {
    console.log(options)
    this.setData({// 把从index页面获取到的属性值赋给详情页的my，供详情页使用
      mediaUrl: options.mediaUrl
    })      
  },
  videoPlay: function(){
    var videoPlayer = wx.createVideoContext('video')
    videoPlayer.play();
  },
  videoPause: function(){
    var videoPlayer = wx.createVideoContext('video')
    videoPlayer.pause();
  }
})